#!/usr/bin/python
# -*- coding:utf-8 -*-
# @author  : xuexiaohua
# @time    : 2025/8/23 18:08
# @function: the script is used to do something.
# @version :
import time


class TimeUtil:
    @staticmethod
    def localtime_to_str(format):
        return time.strftime(format, time.localtime())


if __name__ == '__main__':
    print(TimeUtil.localtime_to_str("%Y%m%d"))